﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Assets._Script.Entity.Items
{
    public abstract class Weapon:Item
    {
        //攻击力
        private int _ap;

        public int Ap
        {
            get { return _ap; }
            set { _ap = value; }
        }

        public Weapon() { }

        public Weapon(string name, string info, int ap) :base(name,info)
        {
            _ap = ap;
        }

        public abstract void Attack();

        public override string ToString()
        {
            return $"武器名称：{this.Name} \r\n介绍：{this.Info}\r\n攻击力：{this.Ap}\r\n";
        }
    }
}
